package cn.wzx.service;

import cn.wzx.entity.Book;

import java.util.List;
import java.util.Map;

public interface BookService {
    public List<Book> findAll();
    public Book findById(Integer id);
    public List<Book> findByPage(Integer start, Integer num);
    public int count();
    public void add(Book book);
    public void update(Book book);
    public List<Book> findIf(String str, int start, int num);
    public int findIfCount(String str);
    public int countTypeId(Integer typeid);
    public List<Book> findByPageTypeId(Integer start, Integer num,Integer typeid);
    public void addRate(Integer bookid);
    public List<Book> findRate5();
    public List<Book> findSale5();
    public List<Book> findFav5();
    public List<Book> findPageRate(int start, int num, int typeid);
    public List<Book> findPageSale(int start, int num, int typeid);
    public List<Book> findPageFav(int start, int num, int typeid);
    public void addFav(Integer id,Integer num);
    public void addSale(Integer id,Integer num);
}
